from selenium import webdriver
from conf.setting import HOST



class GetDriver:
    __web_driver = None

    # 获取Web Driver
    @classmethod
    def get_web_driver(cls):
        if cls.__web_driver is None:
            cls.driver = webdriver.Firefox()
            cls.driver.get(HOST)
            cls.driver.maximize_window()
        return cls.driver